home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1998 June / SGI Freeware 1998 June.iso / dist / fw_UMINNgopher.idb / usr / freeware / src / gopher_1.12 / gopherd / globals.h.z / globals.h
C/C++ Source or Header  |  1997-09-09  |  3KB  |  92 lines

  1. /********************************************************************
  2.  * $Author: drich $
  3.  * $Revision: 1.1 $
  4.  * $Date: 1995/10/03 04:08:30 $
  5.  * $Source: /proj/freeware1.0/gopher1.12/src/gopherd/RCS/globals.h,v $
  6.  * $Status: $
  7.  *
  8.  * Paul Lindner, University of Minnesota CIS.
  9.  *
  10.  * Copyright 1991, 1992 by the Regents of the University of Minnesota
  11.  * see the file "Copyright" in the distribution for conditions of use.
  12.  *********************************************************************
  13.  * MODULE: globals.h
  14.  * Global variables for gopher server
  15.  *********************************************************************
  16.  * Revision History:
  17.  * $Log: globals.h,v $
  18.  * Revision 1.1  1995/10/03  04:08:30  drich
  19.  * gopher 1.2 check-in
  20.  *
  21.  * Revision 1.1  1992/12/10  23:13:27  lindner
  22.  * gopher 1.1 release
  23.  *
  24.  *
  25.  *********************************************************************/
  26.  
  27. /*
  28.  * This is some funky defines that assures that global variables are
  29.  * declared only once.  (when globals.c includes this file with EXTERN
  30.  * defined.
  31.  */
  32.  
  33. #ifndef EXTERN
  34. #define EXTERN extern
  35. #define INIT(x)
  36. #else
  37. #define EXTERN
  38. #define INIT(x) = (x)
  39. #endif
  40.  
  41. #include "boolean.h"
  42.  
  43. /**** Defines ****/
  44. #define MAXLINE 512
  45.  
  46. /**** Globals.  ****/
  47.  
  48. EXTERN GDCobj    *Config;
  49. EXTERN boolean   DEBUG INIT(FALSE);
  50. EXTERN boolean   RunFromInetd INIT(FALSE);
  51. EXTERN boolean   Caching INIT(TRUE);
  52. EXTERN boolean   UsingHTML INIT(FALSE);
  53. EXTERN int       LOGFileDesc INIT(-1);
  54. EXTERN char      Data_Dir[256];
  55. EXTERN char      *pname INIT(NULL);
  56. EXTERN GopherDirObj *SortDir;
  57.  
  58. EXTERN int       dochroot INIT(TRUE);   /*** Should we use chroot?? ***/
  59. EXTERN char      *Zehostname INIT(NULL);      /** Holds name and domain **/
  60. EXTERN int       GopherPort INIT(GOPHER_PORT);
  61. EXTERN char      *EXECargs INIT(NULL);   /** used with exec type **/
  62. EXTERN boolean   MacIndex      INIT(FALSE);
  63.  
  64. /*** What's being run ***/
  65. EXTERN boolean   RunLS         INIT(FALSE);
  66. EXTERN boolean   RunServer     INIT(TRUE);  /** Run server as default **/
  67. EXTERN boolean   RunIndex      INIT(FALSE); /** Index server (gindexd) **/
  68.  
  69. /*** Prototypes n' externals ****/
  70.  
  71. extern char *parse_input();
  72. extern int do_command();
  73. void intro_mesg(/* int */);
  74. void listdir();
  75. void printfile();
  76. void echosound();
  77. FILE *specialfile();
  78. extern void LOGGopher();
  79. char *fixfile();
  80. char *mtm_basename(/* (char *) */);
  81. /*** From index.c ***/
  82. void NeXTIndexQuery();
  83. void WaisIndexQuery();
  84. void GrepIndexQuery();
  85. void ShellIndexQuery();
  86. /*** from serverutil.c ***/
  87. void Abortoutput();
  88. int is_mail_from_line();
  89. /*** from ftp.c ***/
  90. void TranslateResults();
  91. void SendFtpQuery();
  92.